home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1999 May: Tool Chest / Developer CD Series Tool Chest (Apple Computer)(May 1999).iso / Tool Chest / Devices / CD-ROM / iso9660 / Srcs / ErrorMsg.c < prev    next >
Encoding:
C/C++ Source or Header  |  1995-09-28  |  1.0 KB  |  41 lines  |  [TEXT/MPS ]

  1. /************************************************************************
  2.  *
  3.  *    Copyright © 1990    Apple Computer, Inc.  All rights reserved.
  4.  *
  5.  ************************************************************************/
  6.  
  7. #include <stdio.h>
  8. #include <Dialogs.h>
  9. #include <strings.h>
  10.  
  11. #include "HighSierra.h"
  12. #include "BuildISO.h"
  13. #include "DialogUtils.h"
  14.  
  15. #include "ErrorMsg.proto.h"
  16.  
  17. /************************************************************************
  18.  *
  19.  *  Function:        ErrorMsg
  20.  *
  21.  *  Purpose:        tell user about some error
  22.  *
  23.  *  Returns:        nothing
  24.  *
  25.  *  Side Effects:    displays an error message
  26.  *
  27.  *  Description:    we assume that you are passing stuff in as if you
  28.  *                    were using printf.  Put up a dialog that tells what
  29.  *                    went wrong using your message.
  30.  *
  31.  ************************************************************************/
  32. void
  33. ErrorMsg(char *a, ...)
  34. {
  35.     char    errorString[255];
  36.     
  37.     sprintf(errorString, a);
  38.     C2PStr(errorString);
  39.     ParamText((StringPtr)errorString, NULL, NULL, NULL);
  40.     Alert(DU_CenterALRT(129), 0L);
  41. }